﻿@model IankerProj.Models.Danhmuc
@using (@Html.BeginForm("Suadanhmuc", "Admin", FormMethod.Post))
{

    <h1>Sửa Danh Mục</h1>

    <div class="form-group">
        
        <input class="form-control" type="hidden" name="ma" value="@Model.id">
    </div>

    <div class="form-group">
        <label>Tên danh mục</label>
        <input class="form-control" name="ten" value="@Model.ten">
    </div>
    <div class="form-group">
        <label>ID cha</label>
        <select id="Select1" class="form-control" name="idcha">
            <option value="@Model.idcha">@Model.idcha</option>
            @foreach (var item in ViewBag.idcha)
            {
                <option value="@item.id">@item.ten</option>
            }

        </select>
</div>
        <button type="submit" class="btn btn-default">Sửa</button>
}